<div class="container">
   <ul class="nav nav-tabs">
        <li class="active"><a href="#">Empresas</a></li>
        <div class="btn-group pull-right">
            <a class="btn btn-default" href="#"> Acciones</a>
            <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
            <ul class="dropdown-menu" >
              <li><a href="#modalEmpresas" onclick="agregar_empresa()" data-toggle="modal"><i class="glyphicon glyphicon-plus"></i> Agregar</a></li>
              <li><a href="#" onclick="eliminar_empresas(0)"><i class="glyphicon glyphicon-trash"></i> Eliminar</a></li>
              <li><a href="#modalEmpresas" onClick="modifica_empresa(0)"><i class="glyphicon glyphicon-pencil"></i> Modificar</a></li>
              <li class="divider"></li>
              <li><a href="#"><i class="glyphicon glyphicon-check" onClick="mensaje('Titulo','Texto');"></i> Activar/Desactivar</a></li>
            </ul>
        </div>
    </ul>

    <div>
        <table  id="tablaEmpresas" class="table tableborder table-hover table-condensed">
            <thead>
                <tr class="headTable">
                    <th></th>
                    <th>Nombre</th>
                    <th>Domicilio</th>
                    <th>D&iacute;a de Fac.</th>
                    <th>Tel&eacute;fono</th>
                    <th>Contacto</th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <?php   foreach ($datos['datos'] as $row) { ?>
                    <tr id="<?php echo $row['idempresa']; ?>">
                        <td><input type="checkbox" id="<?php echo $row['idempresa']; ?>" value="<?php echo $row['idempresa']; ?>"></td>
                        <td><?php echo $row['nombre']; ?></td>
                        <td><?php echo $row['domiciliofiscal']; ?></td>
                        <td><center><?php echo $row['diafacturacion']; ?></center></td>
                        <td><center><?php echo $row['telefono']; ?></center></td>
                        <td><?php echo $row['contacto']; ?></td>
                        <td>
                            <center>
                                <a class="btn btn-success btn-xs" href="#" onclick="modifica_empresa('<?php echo $row['idempresa']; ?>')"><i class="glyphicon glyphicon-edit"></i></a>
                                <a class="btn btn-danger btn-xs" href="#" onclick="eliminar_empresas('<?php echo $row["idempresa"]; ?>')"><i class="glyphicon glyphicon-trash"></i></a>
                            </center>
                        </td>
                     </tr>
                <?php  } ?>
            </tbody>
      </table>
    </div>
</div>
<!-- /container-->
